package org.wk.account.service;

import com.alibaba.fastjson.JSONObject;
import org.springframework.data.domain.Page;
import org.wk.account.domain.bao.SubAccountBaoSeq;
import org.wk.core.common.view.ResponseVo;

import java.math.BigDecimal;
import java.util.List;

/**
 * @Description
 * @Param
 * @author ZhaoPing'an
 * @Date 2018/5/18 11:25
 */
public interface SubAccountBaoService {
    /**
     * @Description 鲸宝兑换操作
     * @Param [targetAccountType, jsonObject]
     * @author ZhaoPing'an
     * @Date 2018/5/18 11:26
     */
    ResponseVo jingbaoExchangeOthers(String targetAccountType, JSONObject jsonObject);

    /**
     *  条件查询鲸宝变动记录  
     * @param page
     * @param size
     * @param subAccountBaoSeq
     * @return
     */
    Page<SubAccountBaoSeq> findSeqByCriteria(Integer page, Integer size, SubAccountBaoSeq subAccountBaoSeq);

   void updateBaoAccount(BigDecimal bao,String userId);

    Page<SubAccountBaoSeq> findSeqByUserIds(int pageNum, int pageSize, List<String> userIds);
}
